package server.app;

import java.util.ArrayList;
import java.util.List;

public class Host {
    private String name;

    private List<Context> contexts;

    public void addContext(Context context) {
        if (null == contexts ) {
            contexts = new ArrayList<>();
        }
        contexts.add(context);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Context> getContexts() {
        return contexts;
    }

    public void setContexts(List<Context> contexts) {
        this.contexts = contexts;
    }
}
